package com.ljl;

/**
 * @author 刘家良
 * @date 2022/10/26 23:13
 * @description 节点数据
 */
public class NodeData {

    /** 节点名称 */
    private String name;

    /** 凭证 */
    private String token;

    /** 温度数据 */
    private Float temperature;

    /** 湿度数据 */
    private Float humidity;

    /** 采集时间-时间戳 */
    private Long sampleTime;

    public NodeData() {
    }

    public NodeData(String name, String token) {
        this.name = name;
        this.token = token;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getTemperature() {
        return temperature;
    }

    public void setTemperature(Float temperature) {
        this.temperature = temperature;
    }

    public Float getHumidity() {
        return humidity;
    }

    public void setHumidity(Float humidity) {
        this.humidity = humidity;
    }

    public Long getSampleTime() {
        return sampleTime;
    }

    public void setSampleTime(Long sampleTime) {
        this.sampleTime = sampleTime;
    }

    @Override
    public NodeData clone() {
        return new NodeData(name, token);
    }

}
